package the.workshop.bu.mapper;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import the.workshop.bu.dto.CheckTelDTO;
import the.workshop.bu.dto.CheckTelQueryDTO;
import the.workshop.bu.entity.CustomerTel;
import org.wisteria.framework.web.mvc.dao.SuperMapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lei.liu
 * @since 2020-06-15
 */
public interface CustomerTelMapper extends SuperMapper<CustomerTel> {

    void updateByCustomerId(CustomerTel entity);

    void deleteByCustomerId(@Param("customerId") Integer customerId, @Param("modifiedTime") Date modifiedTime, @Param("modifiedId") String modifiedId, @Param("modifiedName") String modifiedName);

    List<CheckTelDTO> listCheckTel(CheckTelQueryDTO query);
}
